package com.koicarp.university.graudate.common.utils;



import java.util.HashMap;
public class UniversityResponse extends HashMap<String, Object> {
    private static final long serialVersionUID = -8713837118340960775L;

    public UniversityResponse message(String message) {
        this.put("message", message);
        return this;
    }

    public UniversityResponse data(Object data) {
        this.put("data", data);
        return this;
    }

    public UniversityResponse code(String code){
        this.put("code", code);
        return this;
    }

    @Override
    public UniversityResponse put(String key, Object value) {
        super.put(key, value);
        return this;
    }

    public String getMessage() {
        return String.valueOf(get("message"));
    }

    public Object getData() {
        return get("data");
    }

    public Object getCode(){return get("code"); }
}
